/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = wtc_typedbuffer.h                                  */
/*  NOTE      =                                                    */
/*  DATE      = 2015/08/25 by songbb                               */
/*******************************************************************/

#ifndef __WTC_TYPEDBUFFER_H_
#define __WTC_TYPEDBUFFER_H_

int wtc_add_typedbuffer(Conntrack *p_st_conn
                        , char *p_type
                        , char *p_subtype
                        , unsigned int ui_fld
                        , L7_wtc_packet *p_st_wtc_packet
                        , unsigned int ui_skip_len
                        , Frreport_body_data *p_st_body);

typedef int (*typedbufferfunc) (Conntrack *p_st_conn
                                , L7session_wtc *p_st_sess
                                , L7_wtc_packet *p_st_wtc_packet
                                , int i_recv_size
                                , Frreport_body_data *p_st_body);

typedbufferfunc wtc_create_typedbuffer_by_type(char *p_type
                                            , char *p_subtype);

typedbufferfunc wtc_create_typedbuffer(int i_hint_index
                                    , char *p_type
                                    , char *p_subtype);

//////////////////////// for analyze direction
typedef int (*typedbufferfunc_fad) (int i_recv_size
                                    , char *p_payload
                                    , unsigned int ui_payload_len
                                    , unsigned int *p_ui_offset);

typedbufferfunc_fad wtc_create_view_instance_fad(char *p_subtype);

typedbufferfunc_fad wtc_create_typedbuffer_by_type_fad(char *p_type
                                                    , char *p_subtype);

typedbufferfunc_fad wtc_create_typedbuffer_fad(int i_hint_index
                                            , char *p_type
                                            , char *p_subtype);

#endif
